package it.unibo.imola.parser.visitor.entity;

import java.util.HashMap;
import java.util.Map;

import org.apache.commons.lang3.builder.ReflectionToStringBuilder;

public class Environment {

	protected Map<String,Variable> variables = null;

	public Environment() {
		this.variables = new HashMap<String,Variable>(0);
	}

	/**
	 * @return the variables
	 */
	public Map<String,Variable> getVariables() {
		return variables;
	}
	
	public void clear(){
		variables.clear();
	}

	@Override
	public String toString() {
		return ReflectionToStringBuilder.toString(this);
	}
}
